// Copyright 2010 Alexandre Tristan St-Cyr <tristan.stcyr@gmail.com>

package com.codeplex.loadjava.model;

public class FieldReference {
	private Field field;
	private Method method;
	
	public FieldReference(Field field, Method method) {
		this.field = field;
		this.method = method;
	}
	
	public Field getField()
	{
		return this.field;
	}
	
	public Method getMethod()
	{
		return this.method;
	}
	
	@Override
	public boolean equals(Object o) {
		if (!this.getClass().isInstance(o))
			return false;
		FieldReference other = (FieldReference)o;
		return this.field.equals(other.field) &&
			this.method.equals(other.method);
	}
}
